import { PrimaryGeneratedColumn, Column, Index } from 'typeorm'

export class BaseEntity {
    @PrimaryGeneratedColumn()
    id: number

    @Column({ length: 16, nullable: true, comment: '创建人' })
    au: string

    @Column({ length: 16, nullable: true, comment: '更新人' })
    ed: string

    @Index()
    @Column({ length: 32, nullable: true, comment: '创建时间' })
    ct: string

    @Index()
    @Column({ length: 32, nullable: true, comment: '更新时间' })
    ut: string
}
